<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <script>
            function Person(name,age,gender,height){
                this.name = name;
                this.age = age;
                this.gender = gender;
                this.height = height;
            }
            Person.prototype.show = function(){
                alert("大家好，我是"+this.name+",今年"+this.age+"岁,是一个身高"+this.height+"米的"+this.gender+"人。")
            }
            var piPiPan = new Person("潘辉",20,"男",1.70);
            var chenChenEr = new Person("吴晨",18,"女",1.62);
            var jiaoJiao = new Person("侯娇",18,"女",1.60);
            piPiPan.show();
            chenChenEr.show();
            jiaoJiao.show();


        </script>
    </body>
</html>